﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace elr_tracking_bal.GEO
{
    public class Pais : INotifyPropertyChanged
    {
        private int _ID_PAIS;
        private string _PAIS;
        private string _ISO;

        public int ID_PAIS
        {
            get
            {
                return _ID_PAIS;
            }
            set
            {
                if (_ID_PAIS != value)
                {
                    _ID_PAIS = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("ID_PAIS"));
                    }
                }
            }
        }

        public string PAIS
        {
            get
            {
                return _PAIS;
            }
            set
            {
                if (_PAIS != value)
                {
                    _PAIS = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("PAIS"));
                    }
                }
            }
        }

        public string ISO
        {
            get
            {
                return _ISO;
            }
            set
            {
                if (_ISO != value)
                {
                    _ISO = value;
                    if (this.PropertyChanged != null)
                    {
                        this.PropertyChanged(this, new PropertyChangedEventArgs("ISO"));
                    }
                }
            }
        }
        /// <summary>
        /// Constructor sin parámetros
        /// </summary>
        public Pais() { }
        /// <summary>
        /// Constructor con parámetros
        /// </summary>
        /// <param name="ID_PAIS"></param>
        /// <param name="PAIS"></param>
        /// <param name="ISO"></param>
        public Pais(int ID_PAIS, string PAIS, string ISO) {
            this._ID_PAIS = ID_PAIS;
            this._PAIS = PAIS;
            this._ISO = ISO;
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
